#include "sfsuccess.h"
#include "ui_sfsuccess.h"
#include "start.h"

SFSuccess::SFSuccess(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::SFSuccess)
{
    ui->setupUi(this);
    this->setWindowTitle("SecondFloor");

    ui->textBrowser->append("列车撞了过去，你闭紧双眼，但突然发现这只是个梦。。。你回复了所有生命，获得100分。。。");
    nextButton = new QPushButton(this);
    nextButton->setGeometry(QRect(200,200,71,61));
    nextButton->setText("继续");
    connect(nextButton,&QPushButton::clicked,this,&Sendslot);
}

SFSuccess::~SFSuccess()
{
    delete ui;
}

void SFSuccess::Sendslot(){
    bloods=3;
    score+=100;
    emit Mysignal();
}
